<div class="panel-default">
  <table lay-filter="demo" lay-size='lg'>
    <thead>
      <tr>

        <th lay-data="{field:'key'}"><%= NavigaBar.human_attribute_name(:key) %></th>

        <th lay-data="{field:'name'}"><%= NavigaBar.human_attribute_name(:name) %></th>

        <th lay-data="{field:'order_number'}"><%= NavigaBar.human_attribute_name(:order_number) %></th>

        <th lay-data="{field:'operation',width:200}"></th>
      </tr>
    </thead>

    <tbody>
      <% @naviga_bars.each do |naviga_bar| %>
        <tr>

          <td><%= naviga_bar.key %></td>

          <td><%= naviga_bar.name %></td>

          <td><%= naviga_bar.order_number %></td>

          <td>
            <%= link_to edit_admin_naviga_bar_path(naviga_bar), remote: true, class: "label" do -%><i class="iconfont icon-bianji"></i>编辑<% end %>
            <% unless naviga_bar.only_key? %>
              <%= link_to [:admin, naviga_bar], method: :delete, data: { confirm: '确定删除吗? 注意此操作无法撤销！' }, class: "label label-danger" do -%><i class="iconfont icon-shanchu"></i>删除<% end %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
  <%
=begin%>
 <%#= link_to new_admin_naviga_bar_path, remote: true do -%><button type="button" class="layui-btn"><i class="layui-icon">&#xe608;</i> <%#= t('actions.new') + NavigaBar.model_name.human %></button><%# end %>
<%
=end%>
  <!-- 分页 -->
  <%= render 'admin/public_views/page', record: @naviga_bars, record_count: @naviga_bars.count %>
</div>
<div id="add_naviga_bar" style="display: none; padding: 20px"></div>
